//
//  CategoryViewController.m
//
//  Created by 周成龙
//

#import "CategoryViewController.h"

@interface CategoryModel : NSObject
@property (nonatomic, copy, readonly)NSString *firstName;
@property (nonatomic, copy, readonly)NSString *lastName;
@property (nonatomic, copy, readonly)NSArray *friends;
- (id) initWithFirstName:(NSString *)firstName lastName:(NSString *)lastName;
//- (void)addFriend:(CategoryModel *)model;
//- (void)removeFriend:(CategoryModel *)model;
//- (BOOL)isFriendsWith:(CategoryModel *)model;
//
//- (void)performDaysWork;
//- (void)takeVacationFromWork;
//
//- (void)goToTheCinema;
//- (void)goToSportsGame;
@end
@implementation CategoryModel
- (id) initWithFirstName:(NSString *)firstName lastName:(NSString *)lastName {
    if (self = [super init]) {
        _firstName = firstName;
        _lastName = lastName;
    }
    return self;
}
@end

@interface CategoryModel (Friends)
- (void)addFriend:(CategoryModel *)model;
- (void)removeFriend:(CategoryModel *)model;
- (BOOL)isFriendsWith:(CategoryModel *)model;
@end
@implementation CategoryModel (Friends)
- (void)addFriend:(CategoryModel *)model {
    
}
- (void)removeFriend:(CategoryModel *)model {
    
}
- (BOOL)isFriendsWith:(CategoryModel *)model {
    return YES;
}
@end

@interface CategoryModel (Work)
- (void)performDaysWork;
- (void)takeVacationFromWork;
@end
@implementation CategoryModel (Work)
- (void)performDaysWork {
    
}
- (void)takeVacationFromWork {
    
}
@end

@interface CategoryModel (Play)
- (void)goToTheCinema;
- (void)goToSportsGame;
@end
@implementation CategoryModel (Play)
- (void)goToTheCinema {
    
}
- (void)goToSportsGame {
    
}
@end



@interface CategoryViewController ()
@end
@implementation CategoryViewController
#pragma mark - LifeCycle
- (void)viewDidLoad {
    [super viewDidLoad];
    
    CategoryModel *model = [[CategoryModel alloc] initWithFirstName:@"Bob" lastName:@"Paul"];
    [model performDaysWork];
    //*****//
}


@end
